import request from "@/utils/request"

export const getSkuListApi = ()=>request.get('/spu/sku')

export const addSpuApi = (data)=>request.post('/spu',data)

export const updateSpuApi = (data)=>request.put('/spu',data)

export const deleteSpuApi = (id)=>request.delete(`/spu/${id}`)

export const getAllSpuApi = (page,pageSize,title,categoryId3) =>request.get(`/spu?page=${page}&pageSize=${pageSize}&title=${title}&categoryId3=${categoryId3}`)